{%include file="header.html"%}
<form action="{%$formAction%}" method="POST" {%if $is_validator%} onsubmit="return Validator.Validate(this)" {%/if%}>
<table width="100%" border="0" class="adminform">
  <tr>
    <th>{%$systemLang.mark%}</th>
  </tr>
  <tr>
    <td><label>
      <input type="text" class="text"  name="form[group_name]" id="form[group_name]" value="{%$group.group_name%}" dataType="Require" msg="{%$systemLang.markNotEmpty%}"/>
      </label></td>
  </tr>
  <tr>
    <th>{%$systemLang.cnName%}</th>
  </tr>
  <tr>
    <td><input type="text" class="text"  name="form[group_value]" id="form[group_value]" value="{%$group.group_value%}" dataType="Require" msg="{%$systemLang.cnNameNotEmpty%}"/></td>
  </tr>
  <tr>
    <th>{%$systemLang.desc%}</th>
  </tr>
  <tr>
    <td><input type="text" class="text"  name="form[description]" id="form[description]" value="{%$group.description%}"/></td>
  </tr>
  <tr>
    <th>{%$systemLang.belongPlatform%}</th>
  </tr>
    <td>
    	<select name="form[platform]" style="width:200px">
    	{%foreach from=$platformList item=item key=key%}
    		<option value="{%$key%}" {%if $key eq $group.platform%}selected{%/if%}>{%$item%}</option>
    	{%/foreach%}
    </td>  
  <tr>
    <th>{%$systemLang.gamePerm%}</th>
  </tr>
  <tr>
    <td>
        <select name="games[]" multiple="true" size="10" style="width:200px">
                <option value="0">{%$systemLang.allGame%}</option>
                {%html_options options=$games selected=$mygames%}
        </select>
     </td>
  </tr>
  <tr>
  <tr>
    <td colspan="2"><label>
      <input  type="hidden" name="form[group_id]" id="form[group_id]" value="{%$group.group_id%}"/>
      <input  type="hidden" name="check[]"  value="{%$group.group_value%}"/>
      <input  type="hidden" name="check[]"  value="{%$group.group_name%}"/>
      <input type="submit"  id="button" value="{%$systemLang.submit%}" class="button"/>
      </label></td>
  </tr>
</table>
</form>
